package com.qsxc.system.log;

import lombok.Data;
import org.apache.logging.log4j.Level;


/**
 * 日志信息
 * @author
 *
 */
@Data
public class LogBean {
    private Level level;
    /**
     * 调用时间
     */
    private long time;
    /**
     * 日志内容
     */
    private String info;
    /**
     * 调用者
     */
    private String className;

    private Exception e;

    public LogBean(String loginfo, Level level, String className) {
        time = System.currentTimeMillis();
        info = loginfo;
        this.className = className;
        this.level = level;
    }

    public LogBean(String loginfo, Level level, Exception e, String className) {
        time = System.currentTimeMillis();
        info = loginfo;
        this.className = className;
        this.level = level;
        this.e = e;
    }
}
